package com.skivingcloud.admin.sys.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * <p>
 * 消息流水
 * </p>
 *
 * @author skivingcloud
 * @since 2022-01-29
 */
@TableName("sys_msg_stream")
@ApiModel(value = "SysMsgStream对象", description = "消息流水")
public class SysMsgStream implements Serializable {

    private static final long serialVersionUID = 1L;

    private String id;

    @ApiModelProperty("消息编码")
    private String msgCode;

    @ApiModelProperty("消息内容")
    private String msgContext;

    @ApiModelProperty("消息内容参数,json形式“{'a':'b','c':'d'}")
    private String msgContextParam;

    @ApiModelProperty("发送者")
    private String senderId;

    @ApiModelProperty("接受者")
    private String receiverId;

    @ApiModelProperty("业务ID")
    private String businessId;

    @ApiModelProperty("发送时间")
    private LocalDateTime sendTime;

    @ApiModelProperty("接受状态 1：未接受 2： 已接收")
    private String receiveState;

    @ApiModelProperty("已读时间")
    private LocalDateTime receiveTime;

    @ApiModelProperty("页面参数,json形式“{'a':'b','c':'d'}")
    private String pageParam;

    @ApiModelProperty("租户")
    private String tenantId;

    @TableField(exist = false)
    private String senderName;
    @TableField(exist = false)
    private String pageType;
    @TableField(exist = false)
    private String pageUrl;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }
    public String getMsgCode() {
        return msgCode;
    }

    public void setMsgCode(String msgCode) {
        this.msgCode = msgCode;
    }
    public String getMsgContext() {
        return msgContext;
    }

    public void setMsgContext(String msgContext) {
        this.msgContext = msgContext;
    }
    public String getMsgContextParam() {
        return msgContextParam;
    }

    public void setMsgContextParam(String msgContextParam) {
        this.msgContextParam = msgContextParam;
    }
    public String getSenderId() {
        return senderId;
    }

    public void setSenderId(String senderId) {
        this.senderId = senderId;
    }
    public String getReceiverId() {
        return receiverId;
    }

    public void setReceiverId(String receiverId) {
        this.receiverId = receiverId;
    }
    public String getBusinessId() {
        return businessId;
    }

    public void setBusinessId(String businessId) {
        this.businessId = businessId;
    }
    public LocalDateTime getSendTime() {
        return sendTime;
    }

    public void setSendTime(LocalDateTime sendTime) {
        this.sendTime = sendTime;
    }
    public String getReceiveState() {
        return receiveState;
    }

    public void setReceiveState(String receiveState) {
        this.receiveState = receiveState;
    }
    public LocalDateTime getReceiveTime() {
        return receiveTime;
    }

    public void setReceiveTime(LocalDateTime receiveTime) {
        this.receiveTime = receiveTime;
    }
    public String getPageParam() {
        return pageParam;
    }

    public void setPageParam(String pageParam) {
        this.pageParam = pageParam;
    }
    public String getTenantId() {
        return tenantId;
    }

    public void setTenantId(String tenantId) {
        this.tenantId = tenantId;
    }

    @Override
    public String toString() {
        return "SysMsgStream{" +
                "id=" + id +
                ", msgCode=" + msgCode +
                ", msgContext=" + msgContext +
                ", msgContextParam=" + msgContextParam +
                ", senderId=" + senderId +
                ", receiverId=" + receiverId +
                ", businessId=" + businessId +
                ", sendTime=" + sendTime +
                ", receiveState=" + receiveState +
                ", receiveTime=" + receiveTime +
                ", pageParam=" + pageParam +
                ", tenantId=" + tenantId +
                "}";
    }
    
    /**
     * @return the senderName
     */
    public String getSenderName() {
        return senderName;
    }

    /**
     * @param senderName the senderName to set
     */
    public void setSenderName(String senderName) {
        this.senderName = senderName;
    }

    /**
     * @return the pageType
     */
    public String getPageType() {
        return pageType;
    }

    /**
     * @param pageType the pageType to set
     */
    public void setPageType(String pageType) {
        this.pageType = pageType;
    }

    /**
     * @return the pageUrl
     */
    public String getPageUrl() {
        return pageUrl;
    }

    /**
     * @param pageUrl the pageUrl to set
     */
    public void setPageUrl(String pageUrl) {
        this.pageUrl = pageUrl;
    }

}
